<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>自定义项列表</title>
	<%@ include file="/common/common_style_script.jsp"%>
	<script type="text/javascript">
	    $(function(){
	    	renderTable(document.getElementById('tbl'),"bf_f0","bf_d0","bf_3f");
		});
	</script>
</head>
<body>
	<div class="title_54 bg_f7 fg_mozilla_blue">
		<c:out value="${customItemType.itemTypeName}"/>
		<a class="ar" href="javascript:openDialog('<c:url value="/sys/ci/createItem.action?typeId=${customItemType.itemTypeId}"/>')">新增项</a>
	</div>
	<table id="tbl" class="ct2 mozila_blue f12" width="100%">
		<tr>
			<th>项名称</th><th>项描述</th><th>操作</th>
		</tr>
		<c:choose>
			<c:when test="${not empty requestScope.customItemList}">
				<c:forEach items="${requestScope.customItemList}" var="data">
					<tr>
						<td><c:out value="${data.itemName}"/></td>
						<td><c:out value="${data.itemDesc}"/></td>
						<td>
							<a href="javascript:openDialog('<c:url value="/sys/ci/editItem.action?itemId=${data.itemId}"/>')">修改</a>|
							<a href="javascript:ajaxDelete('<c:url value="/ajax/ci/doDeleteItem.action?itemId=${data.itemId}"/>', '是否确认删除【${data.itemName}】?')">删除</a>
						</td>
					</tr>
				</c:forEach>
			</c:when>
			<c:otherwise>
				<tr><td rowspan="3">无记录</td></tr>
			</c:otherwise>
		</c:choose>
	</table>
</body>
</html>